<template>
    <div>
        <h1>{{aaa}}</h1>
        <button @click="this.$emit('add',this.hhh)">子传父</button>
    </div>
</template>

<script>
    export default {
        props:{
            aaa:String
        },
        data() {
            return {
                hhh:'子传父'
            }
        },
    }
</script>

<style lang="sass" scoped>

</style>